package com.enzoism.springboot.dive.config;

import lombok.Data;
import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

@Getter
@Data
@Configuration
@ConfigurationProperties(prefix = "elasticsearch")
public class ESConfig {

    public Map<String, Config> configs;

    @Data
    public static class Config {
        private String userName;
        private String password;
        private String host;
        private String port;
        private String indexName;
        private long timeout;
    }
}